package com.xxpt.common.constant;

import com.xxpt.common.utils.amqp.QueueCode;

/**
 * 延迟队列
 */
public enum DelayedQueues implements QueueCode {
    TES01_DELAYED_QUEUE(RabbitMqConstant.DELAYED_TEST01, RabbitMqConstant.DELAYED_TEST01_ROUTING,20, "延迟队列测试01"),

    ;

    private String name;
    private String routingKey; // 死信routingKey
    private Integer delayTime; // 延迟时间（秒）
    private String description;

    DelayedQueues(String name, String routingKey, Integer delayTime, String description) {
        this.name = name;
        this.routingKey = routingKey;
        this.delayTime = delayTime;
        this.description = description;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getRoutingKey() {
        return routingKey;
    }

    @Override
    public String getDescription() {
        return description;
    }

    @Override
    public Integer getDelayTime() {
        return delayTime;
    }
}
